import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

//导入路由
import { createRouter } from "./router/index.js"
//导入pinia
import { createPinia } from 'pinia'
//导入pinia 持久化 插件
import piniaPersist from 'pinia-plugin-persist'
//设置pinia 持久化
const pinia = createPinia()
pinia.use(piniaPersist)

//导入Vant组件库
import Vant from 'vant'
import 'vant/lib/index.css';

createApp(App)
    .use(createRouter())
    .use(pinia)
    .use(Vant)
    .mount('#app')
